/**
 * Created by singemazuo on 1/30/16.
 */

var express = require('express');
var router = express.Router();
var jwt = require('jwt-simple');
var moment = require('moment');

router.get('/getGoods',function(req,res){
    if (typeof req.query.token !== 'undefined'){
        var token = jwt.decode(req.query.token,'shengyanhong-19880620&zuoyinbin-19860714');

        if (token.exp <= Date.now()){
            console.log('');

            res.json();
        }else{
            console.log('');
        }
    }else{
        console.log('');
    }
});

module.exports = router;
